package com.carsys.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户实体类
 */
@Data
@AllArgsConstructor  //有参构造
@NoArgsConstructor  //无参构造
public class SUser {

     private Integer id;     //用户id
     private String tel;      //用户电话号码
     private String password;      //用户密码
     private String email;         //用户邮箱
     private String invitation;    //邀请码
     private Integer identity;     //身份标志 0为管理员 默认为1用户   2位被禁用用户

     @Override
     public String toString() {
          return "SUser{" +
                  "id=" + id +
                  ", tel='" + tel + '\'' +
                  ", password='" + password + '\'' +
                  ", email='" + email + '\'' +
                  ", invitation='" + invitation + '\'' +
                  '}';
     }
}
